<template>
	<view class="content">
		<view class="header">
			<view class="header_bg">
				<view class="add_ipt">
					<view class="add_ipt1">
						<view class="add_iptt">
							<text>子管理员名称</text>
						</view>
						<view class="add_ipti">
							<input type="text" value="" placeholder="请输入" />
						</view>
					</view>
					<view class="add_ipt1">
						<view class="add_iptt">
							<text>子管理员名称</text>
						</view>
						<view class="add_ipti">
							<input type="text" value="" placeholder="请输入" />
						</view>
					</view>
				</view>
				
				
				
				<view class="adminlist">
					<view class="adminlist1" v-for="(item,index) in list" @click="adminchange(item)">
						<view class="adminlist1_lt">
							<view class="adminlist1_lt1" v-show="item.status">
							</view>
						</view>
						
						<view class="adminlist1_rg">
							<text>{{item.title}}</text>
						</view>
					</view>
				</view>
				
				
				<view class="bt1">
					<button type="default">新增子管理员</button>
				</view>
			
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{
						id:0,
						status:false,
						title:'XX权限'
					},
					{
						id:0,
						status:false,
						title:'XX权限'
					},
					{
						id:0,
						status:false,
						title:'XX权限'
					},
					{
						id:0,
						status:false,
						title:'XX权限'
					},
					{
						id:0,
						status:false,
						title:'XX权限'
					},
					{
						id:0,
						status:false,
						title:'XX权限'
					},
					{
						id:0,
						status:false,
						title:'XX权限'
					}
				]
			}
		},
		methods: {
			adminchange(item){
				item.status=!item.status
			}
		}
	}
</script>

<style>
	.content {
		width: 750rpx;
		height: 1624rpx;
		background: #FAFAFA;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.header {
		width: 750rpx;
		height: 240rpx;
		background: linear-gradient(180deg, #1789FF 0%, #93C3F9 100%);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}
	.header_bg{
		padding-top: 32rpx;
	}
	.add_ipt{
		width: 690rpx;
		height: 228rpx;
		background: #FFFFFF;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: auto;
		padding-top: 24rpx;
	}
	.add_iptt{
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
	}
	.add_ipt1{
		display: flex;
		align-items: center;
		margin-bottom: 28rpx;
		margin-left: 40rpx;
	}
	
	.add_ipti{
		width: 400rpx;
		height: 72rpx;
		background: #FFFFFF;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		border: 2rpx solid #999999;
		display: flex;
		align-items: center;
		margin-left: 24rpx;
	}
	.add_ipti input{
		margin-left: 32rpx;
	}
	.adminlist{
		display: flex;
		flex-wrap: wrap;
		
	}
	.adminlist1{
		width: 33%;
		display: flex;
		justify-content: center;
		margin-top: 38rpx;
	}
	
	.adminlist1_lt{
		width: 40rpx;
		height: 40rpx;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		border: 4rpx solid #D9D9D9;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.adminlist1_lt1{
		width: 28rpx;
		height: 28rpx;
		background: #0077FA;
		border-radius: 14rpx 14rpx 14rpx 14rpx;
	}
	.adminlist1_rg{
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		margin-left: 24rpx;
	}
	.bt1{
		 margin: 500rpx auto 0;
	}
	.bt1 button{
		width: 690rpx;
		height: 96rpx;
		background: #409CFD;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 800;
		font-size: 32rpx;
		color: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.bt2{
		margin: 40rpx auto 0;
	}
	.bt2 button{
		width: 690rpx;
		height: 96rpx;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		border: 4rpx solid #409CFD;
		font-family: PingFang SC, PingFang SC;
		font-weight: 800;
		font-size: 32rpx;
		color: #409CFD;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #FFFFFF;
	}
</style>